#include "main.h"
void strWrite (FILE * fileToWrite,char * buf, size_t len, unsigned int * ChkNum)
{
	unsigned int rc = 0;
	if ((rc = fwrite (buf,sizeof(char),len,fileToWrite)) == len)	{
		if (ChkNum)	ChkNum[0] += (unsigned int) Crc32 (buf,len);	
	}
	else {	
		cl_exit (STR_WRITE,WRITE_ERR2);
	}
}